package com.szbber.medical.bed.ui.activity

import com.google.gson.Gson
import com.szbber.commen.base.BaseActivity
import com.szbber.commen.bean.BedCardInfoBean
import com.szbber.medical.bed.R
import kotlinx.android.synthetic.main.activity_lock_screen.*

class LockScreenActivity : BaseActivity() {

    private var patientVo: BedCardInfoBean.PatientVo? = null

    override fun initLayout(): Int  = R.layout.activity_lock_screen

    override fun initView() {

        rlLayout.setOnClickListener {
            finish()
        }
        patientVo = Gson().fromJson( intent.getStringExtra("data"), BedCardInfoBean.PatientVo::class.java)
        patientVo?.apply {
            tvName.text = name
            tvBedNum.text = bed_code
            tvCureNo.text =  cure_no
        }

    }
}